# encoding=utf-8
import sys
from  time import sleep
reload(sys)
sys.setdefaultencoding('utf-8')
from GeneralService import Login
from Configure import Attribute as att
from GeneralService import Topic

class topicinfo(Login.BaseLogin):
    def test_shareTopic(self):
        self.login()
        dr = self.driver
        dr.find_element_by_id(att.bottom_homeStory_id).click()
        dr.find_element_by_name(u"话题").click()
        view = dr.find_element_by_id(att.homeStory_topic_mainArea_id)
        Topic.topicAddMore(dr,view)
        dr.find_element_by_id(att.homeStory_topic_share_id).click()
        dr.find_elements_by_id(att.homeStory_topic_weixinShare_id)[0].click()
        #点击物理键返回按钮
        dr.press_keycode(4)